<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/all.conf.php');
require_once(__PHY_LIB.'/class/aFunc.class.php');

$_UNIT = array(
	'Name' => 'rNav',
);

$oNavFuncList = new aFuncList("adm_func f INNER JOIN adm_access a ON a.func_id=f.id");
$oNavFuncList->cfgWhere("a.user_id='{$_SESSION['ADM_USER_ID']}' AND a.level>=1");
$oNavFuncList->cfgOrder("group_cname DESC,func_cname");
$oNavFuncList->load();
$_UNIT['Data'] = $oNavFuncList->fetchArray();

/// output ///
if (is_object($this)) {
	$this->assign($_UNIT['Name'], $_UNIT);
}
else {
	print_r($_UNIT);
}
?>
